package com.raos.lottery.redis.converter;


import com.raos.lottery.redis.controller.vo.LotteryItemVo;
import com.raos.lottery.redis.service.dto.DoDrawDto;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Repository;

/**
 * 抽奖活动转换器
 *
 * @author raos
 * @emil 991207823@qq.com
 * @date 2021/7/21 23:01
 */
@Mapper(componentModel = "spring")
@Repository
public interface LotteryConverter {

    /**
     * 转换活动项展示实例
     * @param drawDto 活动传输封装实例
     * @return
     */
    LotteryItemVo dto2LotteryItemVo(DoDrawDto drawDto);

}
